<template>
  <div class="home">
    <Head></Head>
    <div class="ranking">{{msg}}</div>
    <router-link class="search" to="/frameRanking">查询排名</router-link>
  </div>
</template>

<script>
  import Head from './head.vue'
   export default {
    name: 'Home',
    data () {
    return {
      msg: '点击下方按钮可查询github热门框架排名'
     }
    },
    methods: {
    cli () {
      console.log(1)
      this.$http.githubGet('http://localhost:3000/', function (res) {
        console.log(res)
      }, function (err) {
        console.log(err)
      })
     }
   },
  components:{
    Head
  }
}
</script>

<!-- Add "scoped" attribute to limit CSS to this component only -->
<style scoped lang="scss">
h1, h2 {
  font-weight: normal;
}
ul {
  list-style-type: none;
  padding: 0;
}
li {
  display: inline-block;
  margin: 0 10px;
}
a {
  color: #42b983;
}
.home{
  .search{
    display: inline-block;
    border: 1px solid #42b983;
    margin-top: 20px;

  }
}

</style>
